/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/Filter.java to edit this template
 */
package cn.edu.just.secondwebapp.filter;

import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

/**
 *
 * @author JUST
 */
public class FirstFilter implements Filter {    
   
    @Override
    public void doFilter(ServletRequest request, ServletResponse response,
            FilterChain chain)   throws IOException, ServletException {        
            
            System.out.println("FirstFilter请求过来了...");
            chain.doFilter(request, response);
            System.out.println("FirstFilter响应回头了....");
            
    }  
 
    
}
